﻿using AnesSystem.Models;
using AnesSystem.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace AnesSystem.Controls.Operation.SC.SCDC
{
    /// <summary>
    /// 麻醉单监测与治疗
    /// </summary>
    public partial class AnesOperInfoCtrl : UserControl
    {
        public AnesOperInfoCtrl()
        {
            InitializeComponent();
            this.Loaded += AnesOperInfoCtrl_Loaded;
            InitRadioButton();
            SetDefalutValue();
        }

        private void InitRadioButton()
        {
            new RadioButtonHelper().ChangeRadioSatus(pcia, pcna, pcea, wypca);
            new RadioButtonHelper().ChangeRadioSatus(mzxgc, mzxgn, mzxgy);
        }
        private void SetDefalutValue()
        {
            AnesthesiaRecordModel anesthesiaRecord=DataManager.Instance.CurrentPatientLink.AnesthesiaRecord;
            if (string.IsNullOrEmpty(anesthesiaRecord.Xqfxnr))
            {
                anesthesiaRecord.Xqfxnr = "/";
            }
            if (string.IsNullOrEmpty(anesthesiaRecord.Xqfxnr))
            {
                anesthesiaRecord.Xqfxnr = "/";
            }
            if (string.IsNullOrEmpty(anesthesiaRecord.Qtjy))
            {
                anesthesiaRecord.Qtjy = "/";
            }
            if (string.IsNullOrEmpty(anesthesiaRecord.Shzd1))
            {
                anesthesiaRecord.Shzd1 = "/";
            }
            if (string.IsNullOrEmpty(anesthesiaRecord.Ysss1))
            {
                anesthesiaRecord.Ysss1 = "/";
            }
            if (string.IsNullOrEmpty(anesthesiaRecord.Szzj))
            {
                anesthesiaRecord.Szzj = "/";
            }
            if (string.IsNullOrEmpty(anesthesiaRecord.Sxpf))
            {
                anesthesiaRecord.Sxpf = "/";
            }
            if (string.IsNullOrEmpty(anesthesiaRecord.Brqw))
            {
                anesthesiaRecord.Brqw = "/";
            }
        }
        private void AnesOperInfoCtrl_Loaded(object sender, RoutedEventArgs e)
        {



        }
       
       
    }
}
